package com.jinke.api.modules.app.service;

import com.jinke.api.common.api.CommonResult;
import com.jinke.api.modules.app.controller.res.PriceRuleImportDto;
import com.jinke.api.modules.app.controller.res.PriceSurchargeImportDto;
import com.jinke.api.modules.app.controller.res.RuleSurchargeImportDto;
import com.jinke.api.modules.app.model.PriceRule;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinke.api.modules.third.ezeeship.model.request.EstimateRateRequest;

import java.io.IOException;

/**
 * <p>
 * 自定义价格表 服务类
 * </p>
 *
 * @author macro
 * @since 2024-07-17
 */
public interface PriceRuleService extends IService<PriceRule> {

    CommonResult<String> importPriceRules(PriceRuleImportDto importDto) throws IOException;

    /**
     * 从自定义价格表查价格
     */
    PriceRule   getRateFromPriceRule(EstimateRateRequest.Parcel parcel);

    CommonResult<String> importRuleSurcharge(RuleSurchargeImportDto importDto) throws IOException;
}
